export const menus = [
  {
    group: '基本形状',
    children: [
      {
        key: 'rect',
        title: '矩形',
        data: {
          name: 'rectangle',
          text: '矩形',
          width: 100,
          height: 100,
          title: '矩形',
        },
      },
      {
        key: 'circle',
        title: '圆',
        data: {
          text: '圆',
          name: 'circle',
          width: 100,
          height: 100,
          title: '圆',
        }
      },
      {
        key: 'triangle',
        title: '三角形',
        data: {
          text: '三角形',
          name: 'triangle',
          width: 100,
          height: 100,
          title: '三角形',
        }
      },
      {
        key: 'diamond',
        title: '菱形',
        data: {
          text: '菱形',
          name: 'diamond',
          width: 100,
          height: 100,
          title: '菱形',
        }
      },
      {
        key: 'pentagon',
        title: '五边形',
        data: {
          text: '五边形',
          name: 'pentagon',
          width: 100,
          height: 100,
          title: '五边形',
        }
      },
      {
        key: 'hexagon',
        title: '六边形',
        data: {
          text: '六边形',
          name: 'hexagon',
          width: 100,
          height: 100,
          title: '六边形',
        }
      },
      {
        key: 'pentagram',
        title: '五角星',
        data: {
          text: '五角星',
          name: 'pentagram',
          width: 100,
          height: 100,
          title: '五角星',
        }
      },
      {
        key: 'leftArrow',
        title: '左箭头',
        data: {
          text: '左箭头',
          name: 'leftArrow',
          width: 100,
          height: 100,
          title: 'leftArrow',
        }
      },
      {
        key: 'rightArrow',
        title: '右箭头',
        data: {
          text: '右箭头',
          name: 'rightArrow',
          width: 100,
          height: 100,
          title: 'rightArrow',
        }
      },
      {
        key: 'twowayArrow',
        title: '双向箭头',
        data: {
          text: '双向箭头',
          name: 'twowayArrow',
          width: 100,
          height: 100,
          title: 'rightArrow',
        }
      },
      {
        key: 'line',
        title: '直线',
        data: {
          text: '',
          name: 'line',
          width: 100,
          height: 0,
          title: 'line',
        }
      },
      {
        key: 'message',
        title: '消息框',
        data: {
          text: '消息框',
          name: 'message',
          width: 100,
          height: 100,
          title: 'message',
        }
      },
      {
        key: 'text',
        title: '文本',
        data: {
          text: '文本',
          name: 'text',
          width: 100,
          height: 100,
          title: 'text',
        }
      },
      {
        key: 'img',
        title: '温控器',
        data: {
          key: 'wkq',
          name: 'image',
          width: 50,
          height: 50,
          rect: {
            width: 600,
            height: 600
          },
          //image: 'https://prm.chinacaring.com/api/caring1/pdu.png',
         image: "http://" + window.location.hostname + ":8012/images/wkq.svg"
        },
      },
        {
          key: 'img',
          title: '计量器',
          data: {
            key: 'meter',
            name: 'image',
            width: 50,
            height: 50,
            rect: {
              width: 600,
              height: 600
            },
            //image: 'https://prm.chinacaring.com/api/caring1/pdu.png',
            image: "http://" + window.location.hostname + ":8012/images/meter.svg"
          }
        }
        /* {
           key: 'img',
           title: '机房全景',
           data: {
             key: 'bg',
             name: 'image',
             width: 900,
             height: 450,
             image: 'https://prm.chinacaring.com/api/caring1/demo-1.png',
           },
         },*/
      //   {
      //     key: 'img',
      //     title: '机房全景2',
      //     data: {
      //       key: 'bg',
      //       name: 'image',
      //       width: 900,
      //       height: 450,
      //       image: 'http://localhost:8012/images/room1.png',
      //     },
      //   },
      // {
      //   key: 'img',
      //   title: '机房全景2',
      //   data: {
      //     key: 'bg',
      //     name: 'image',
      //     width: 900,
      //     height: 450,
      //     image: 'http://localhost:8012/images/room2.png',
      //   },
      // },
    ]
  },
  {
    group: '电气元器件',
    children: [
      {
        key: 'ltee',
        title: '开关',
        icon: 'ltee te-kaiguan',
        data: {
          width: 100,
          height: 100,
          hideAnchor: true,
          name: 'image',
          iconFamily: 'ltee',
          icon: String.fromCharCode('0xe631'),
          iconColor: '#222'
        }
      },
      {
        key: 'ltee',
        title: '接地',
        icon: 'ltee te-jiedi',
        data: {
          width: 100,
          height: 100,
          hideAnchor: true,
          name: 'image',
          iconFamily: 'ltee',
          icon: String.fromCharCode('0xe630'),
          iconColor: '#222'
        }
      },
      {

        key: 'ltee',
        title: '闭合',
        icon: 'ltee te-bihe',
        data: {
            width: 100,
            height: 100,
          hideAnchor: true,
          name: 'image',
          iconFamily: 'ltee',
          icon: String.fromCharCode('0xe62F'),
          iconColor: '#222'
        }
      },
      {
        key:"ltee",
        title: '1-6',
        icon: 'ltee te-1-6',
        data: {
            width: 100,
            height: 100,
          hideAnchor: true,
          name: 'image',
          iconFamily: 'ltee',
          icon: String.fromCharCode('0xe62E'),
          iconColor: '#222'
        }
      },
      {
        key:"ltee",
        title: '1-5',
        icon: 'ltee te-1-5',
        data: {
            width: 100,
            height: 100,
          hideAnchor: true,
          name: 'image',
          iconFamily: 'ltee',
          icon: String.fromCharCode('0xe62D'),
          iconColor: '#222'
        }
      },
      {
        key:"ltee",
        title: '1-4',
        icon: 'ltee te-1-4',
        data: {
            width: 100,
            height: 100,
          hideAnchor: true,
          name: 'image',
          iconFamily: 'ltee',
          icon: String.fromCharCode('0xe62C'),
          iconColor: '#222'
        }
      },
      {
        key:"ltee",
        title: '1-3',
        icon: 'ltee te-1-3',
        data: {
            width: 100,
            height: 100,
          hideAnchor: true,
          name: 'image',
          iconFamily: 'ltee',
          icon: String.fromCharCode('0xe62B'),
          iconColor: '#222'
        }
      },
      {
        key:"ltee",
        title: '1-2',
        icon: 'ltee te-1-2',
        data: {
            width: 100,
            height: 100,
          name: 'image',
          iconFamily: 'ltee',
          icon: String.fromCharCode('0xe62A'),
          iconColor: '#222'
        }
      },
      {
        key:"ltee",
        title: '1-1',
        icon: 'ltee te-1-1',
        data: {
            width: 100,
            height: 100,
          hideAnchor: true,
          name: 'image',
          iconFamily: 'ltee',
          icon: String.fromCharCode('0xe629'),
          iconColor: '#222'
        }
      },
      {
        key:"ltee",
        title: '断路器',
        icon: 'ltee te-duanluqi',
        data: {
            width: 100,
            height: 100,
          hideAnchor: true,
          name: 'image',
          iconFamily: 'ltee',
          icon: String.fromCharCode('0xe628'),
          iconColor: '#222'
        }
      },
      {
        key:"ltee",
        title: '电器元器件-10',
        icon: 'ltee te-dianqiyuanqijian-10',
        data: {
            width: 100,
            height: 100,
          hideAnchor: true,
          name: 'image',
          iconFamily: 'ltee',
          icon: String.fromCharCode('0xe627'),
          iconColor: '#222'
        }
      },
      {
        key:"ltee",
        title: '电器元器件-09',
        icon: 'ltee te-dianqiyuanqijian-09',
        data: {
            width: 100,
            height: 100,
          hideAnchor: true,
          name: 'image',
          iconFamily: 'ltee',
          icon: String.fromCharCode('0xe626'),
          iconColor: '#222'
        }
      },
      {
        key:"ltee",
        title: '电器元器件-08',
        icon: 'ltee te-dianqiyuanqijian-08',
        data: {
            width: 100,
            height: 100,
          hideAnchor: true,
          name: 'image',
          iconFamily: 'ltee',
          icon: String.fromCharCode('0xe625'),
          iconColor: '#222'
        }
      },
      {
        key:"ltee",
        title: '电器元器件-07',
        icon: 'ltee te-dianqiyuanqijian-07',
        data: {
            width: 100,
            height: 100,
          hideAnchor: true,
          name: 'image',
          iconFamily: 'ltee',
          icon: String.fromCharCode('0xe624'),
          iconColor: '#222'
        }
      },
      {
        key:"ltee",
        title: '电器元器件-06',
        icon: 'ltee te-dianqiyuanqijian-06',
        data: {
            width: 100,
            height: 100,
          hideAnchor: true,
          name: 'image',
          iconFamily: 'ltee',
          icon: String.fromCharCode('0xe623'),
          iconColor: '#222'
        }
      },
      {
        key:"ltee",
        title: '电器元器件-05',
        icon: 'ltee te-dianqiyuanqijian-05',
        data: {
            width: 100,
            height: 100,
          hideAnchor: true,
          name: 'image',
          iconFamily: 'ltee',
          icon: String.fromCharCode('0xe622'),
          iconColor: '#222'
        }
      },
      {
        key:"ltee",
        title: '电器元器件-04',
        icon: 'ltee te-dianqiyuanqijian-04',
        data: {
            width: 100,
            height: 100,
          hideAnchor: true,
          name: 'image',
          iconFamily: 'ltee',
          icon: String.fromCharCode('0xe621'),
          iconColor: '#222'
        }
      },
      {
        key:"ltee",
        title: '电器元器件-03',
        icon: 'ltee te-dianqiyuanqijian-03',
        data: {
            width: 100,
            height: 100,
          hideAnchor: true,
          name: 'image',
          iconFamily: 'ltee',
          icon: String.fromCharCode('0xe620'),
          iconColor: '#222'
        }
      },
      {
        key:"ltee",
        title: '电器元器件_画板 1 副本',
        icon: 'ltee te-dianqiyuanqijian_huaban1fuben',
        data: {
            width: 100,
            height: 100,
          hideAnchor: true,
          name: 'image',
          iconFamily: 'ltee',
          icon: String.fromCharCode('0xe61F'),
          iconColor: '#222'
        }
      },
      {
        key:"ltee",
        title: '电器元器件-02',
        icon: 'ltee te-dianqiyuanqijian-02',
        data: {
            width: 100,
            height: 100,
          hideAnchor: true,
          name: 'image',
          iconFamily: 'ltee',
          icon: String.fromCharCode('0xe61E'),
          iconColor: '#222'
        }
      },
      {
        key:"ltee",
        title: '指示灯',
        icon: 'ltee te-zhishideng',
        data: {
            width: 100,
            height: 100,
          hideAnchor: true,
          name: 'image',
          iconFamily: 'ltee',
          icon: String.fromCharCode('0xe61B'),
          iconColor: '#222'
        }
      },
      {
        key:"ltee",
        title: '滤波器',
        icon: 'ltee te-lvboqi',
        data: {
            width: 100,
            height: 100,
          hideAnchor: true,
          name: 'image',
          iconFamily: 'ltee',
          icon: String.fromCharCode('0xe61A'),
          iconColor: '#222'
        }
      },
      {
        key:"ltee",
        title: '断路器--2',
        icon: 'ltee te-duanluqi--2',
        data: {
            width: 100,
            height: 100,
          hideAnchor: true,
          name: 'image',
          iconFamily: 'ltee',
          icon: String.fromCharCode('0xe619'),
          iconColor: '#222'
        }
      },
      {
        key:"ltee",
        title: '电容器',
        icon: 'ltee te-dianrongqi',
        data: {
            width: 100,
            height: 100,
          hideAnchor: true,
          name: 'image',
          iconFamily: 'ltee',
          icon: String.fromCharCode('0xe618'),
          iconColor: '#222'
        }
      },
      {
        key:"ltee",
        title: '常开触点',
        icon: 'ltee te-changkaichudian',
        data: {
            width: 100,
            height: 100,
          hideAnchor: true,
          name: 'image',
          iconFamily: 'ltee',
          icon: String.fromCharCode('0xe617'),
          iconColor: '#222'
        }
      },
      {
        key:"ltee",
        title: '常闭触点',
        icon: 'ltee te-changbichudian',
        data: {
            width: 100,
            height: 100,
          hideAnchor: true,
          name: 'image',
          iconFamily: 'ltee',
          icon: String.fromCharCode('0xe616'),
          iconColor: '#222'
        }
      },
      {
        key:"ltee",
        title: '电气--按钮',
        icon: 'ltee te-dianqi--anniu',
        data: {
            width: 100,
            height: 100,
          hideAnchor: true,
          name: 'image',
          iconFamily: 'ltee',
          icon: String.fromCharCode('0xe614'),
          iconColor: '#222'
        }
      }
    ]
  },
  // {
  //   group: '户型图',
  //   children: [
  //     {
  //       key: 'img',
  //       title: '房间1',
  //       data: {
  //         key: 'bg',
  //         name: 'image',
  //         width: 900,
  //         height: 450,
  //         image: "http://" + window.location.hostname + ":8012/images/room1.png",
  //       }
  //     },
  //     {
  //       key: 'img',
  //       title: '房间2',
  //       data: {
  //         key: 'bg',
  //         name: 'image',
  //         width: 900,
  //         height: 450,
  //         image: "http://" + window.location.hostname + ":8012/images/room2.png",
  //       }
  //     }
  //   ]
  // }
]



